package com.jwsoft.manager.common.enums;
/**
 * @author chenzh
 * @date 2022-03-10
 * @description
 **/
public enum SendStatusEnum {
    cg("0", "草稿"),
    dfs("1", "待发送"),
    yfs("2", "已发送"),
    fssb("3", "发送失败");

    private String type;
    private String name;

    SendStatusEnum(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return this.type;
    }

    public String getName() {
        return this.name;
    }

    public static SendStatusEnum getByType(String type) {

        for (SendStatusEnum typeEnum : values()) {
            if (typeEnum.getType().equals(type)) {
                return typeEnum;
            }
        }
        return null;
    }
}
